package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.PlatformNoEntity;
import java.util.List;

/**
 * 月台号适配器
 *
 * @author 000432
 * @date 2018/7/31 0031
 */
public class PlatformNoAdapter extends CommonRecycleAdapter<PlatformNoEntity> {

  private CommonViewHolder.onItemCommonClickListener mCommonClickListener;

  public PlatformNoAdapter(Context context, List<PlatformNoEntity> dataList, CommonViewHolder.onItemCommonClickListener commonClickListener) {
    super(context, dataList, R.layout.adapter_platform_no);
    this.mCommonClickListener = commonClickListener;
  }

  @Override public void bindData(CommonViewHolder holder, PlatformNoEntity data, int position) {
    holder.setText(R.id.tv_platformNo, data.getPlatformNo());
    holder.setCommonClickListener(mCommonClickListener);
  }
}
